<?php defined('SYSPATH') or die('No direct access allowed.');


class Model_Project_Licence extends ORM {

		// Relationships
	protected $_has_one = array('project' => array('model' => 'desktop_project','foreign_key' => 'licence_id'));

        public function get_all()
        {
            return $this->order_by('name')->find_all()->as_array('id', 'name');
        }
}